<?php
class ModelField extends CActiveRecord {
	public static function model($className = __CLASS__) {
		parent::model ( $className );
	}
	public function tableName() {
		return '{{model_field}}';
	}
	public function rules() {
		
		return array (
			
			array (
				
				'modelid,field,name,tips,css,minlength,maxlength,pattern,errortips,formtype,setting,formattribute,unsetgroupids,unsetroleids,iscore,issystem,isunique,isbase,issearch,isadd,isfulltext,isposition,listorder,disabled,isomnipotent', 
				'required', 
				'message' => '不能为空' 
			) 
		);
	}
	public function relations() {
		
		return array ();
	}
	public function attributeLabels() {
		return array (
			
			"id" => "id", 
			"modelid" => "modelid", 
			"field" => "field", 
			"name" => "name", 
			"tips" => "tips", 
			"css" => "css", 
			"minlength" => "minlength", 
			"maxlength" => "maxlength", 
			"pattern" => "pattern", 
			"errortips" => "errortips", 
			"formtype" => "formtype", 
			"setting" => "setting", 
			"formattribute" => "formattribute", 
			"unsetgroupids" => "unsetgroupids", 
			"unsetroleids" => "unsetroleids",
			"iscore" => "iscore", 
			"issystem" => "issystem", 
			"isunique" => "isunique", 
			"isbase" => "isbase", 
			"issearch" => "issearch", 
			"isadd" => "isadd", 
			"isfulltext" => "isfulltext", 
			"isposition" => "isposition", 
			"listorder" => "listorder", 
			"disabled" => "disabled", 
			"isomnipotent" => "isomnipotent"
		);
	}
}
?>